Value Window*99*

This movable modal window allows examination or editing of values. The Edit, Find and Info menus are available to the user. 

Banner*99*

The banner of the window contains a title depending on the origin of the window, as follows:

o If the window displays the value of a persistent (or attribute) called <name>, the title is Value of Persistent <name>.

o If the window displays the value of the nth item of a list, the title reads Value of List Item n.

o If the window is opened by execution of accept or display operations that have a prompt-string input, the title is the prompt string.*99*

o Otherwise, the title is Value.

Window Regions*99*

A Value window has three regions: 

o scroll list of types

o value panel

o buttons *99*

Opening*100*

A Value window is opened:

o when a double-click occurs on a persistent, Persistent operation, attribute, Get operation, or Set operation; on an element of a list displayed in graphic mode, or, at runtime in step mode, on an executed root or terminal;

o when a Shift-Option-Command-click occurs on a window or window item while in the Window editor;

o during runtime creation of attributes and persistents;

o during execution of the accept or display primitives.

Modes*100*

Values can be displayed in either standard or graphic mode.

Standard Mode*100*

In this mode, the value is displayed either as text or as a sequence of inverted triangles (attribute icons), depending on the type of data.

o A value of the simple data types boolean, integer, none, null, real, and string is displayed as text.*100*

o
An instance of a class is displayed as a sequence of attribute icons. *100*

o
A value of the simple type list can be displayed in standard mode if it does not contain any class instances (at any level). The standard mode of display of a list is textual.  *101*

Graphic Mode*101*

In graphic mode, a value is displayed either as a picture or as a sequence of inverted triangles, depending on the type of data.

o A list is displayed as inverted triangles. If the list contains instances, graphic mode is the only possible mode of display.*101*

o Instances of system classes are displayed as windows, dialogs or menus (see chapter 5, “System Classes”).*101*

o Instances of certain Macintosh types are appropriately displayed.

Editing*101*

When the display is textual, the standard Macintosh text editor applies. In a graphic display of a list, an element can be deleted by deleting a triangle; an element can be added by clicking in space; and the value of an element can be edited by double-clicking on a triangle to open a Value window. If an instance is displayed in standard mode, double-clicking an attribute icon opens a Value window for editing. 

Effects of Buttons*102*

OK*102*

Clicking this button closes the window, saving changes. Option-clicking OK is equivalent to clicking OK on all Value windows on the screen.  

Cancel*102*

Clicking this button closes the window without saving changes. Option-clicking Cancel is equivalent to clicking Cancel on all Value windows on the screen.  

Graphic*102*

Clicking this button causes a list, Macintosh structure, or system-class instance to be displayed in graphic mode.

Types*102*

The scrolling list displays all types. Changing the selected type displays a default value for the new type in the value panel. If the type list is gray, no type change can be made.*102* 

The Text Window*102*

A Text window contains any text that can be saved to a Macintosh text file. 

Opening*102*

A Text window is opened when New Text… or Open Text… is selected from the File menu. 

Naming*102*

If the window corresponds to a text file, the title is the same as the file name. 

Editing in the Text Window*103*

All standard Macintosh text editing operations apply in Text windows.  

Effects of Context Switching*103*

Text windows are displayed both while editing and while executing.